package com.bor.gb.db.repositories;

import com.bor.gb.db.domain.Guide;
import com.bor.gb.db.domain.Place;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface GuideRepository extends MongoRepository<Guide, String>, com.bor.gb.db.repositories.GuideRepositoryCustom {

    public Guide findByUrl(String url);

    public List<Guide> findGuidesByPlace(Place place);

}